<!doctype html>
<html lang="ch-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            border: 0;
            font-size: 30px;
            list-style: none;
        }
        .nav{
            float: left;
            position: relative;
        }
        .nav li{
            /*line-height: 100px;*/
            padding: 0 50px;
            margin-top: 50px;
        }
        .nav li a{
            text-decoration: none;
        }
        .img{
            /*margin-left: 50px;*/
            float: left;
            width: 600px;
            height: 400px;
            background-image: url("images/img2.jpg");
            background-size: cover;
        }
        .img1{
            width: 600px;
            height: 400px;
            background-color: #1DC128;
            position: absolute;
            top: 0;
            left: 113px;
            display: none;
        }
        li:hover .img1{
            display: block;
        }
        li:hover{
            background-color: #888888;
        }
    </style>
</head>
<body>
    <nav class="nav">
        <ul>
            <li>
                <a href="#">1</a>
                <div class="img1">小芳</div>
            </li>
            <li>
                <a href="#">2</a>
                <div class="img1">小兰</div>
            </li>
            <li>
                <a href="#">3</a>
                <div class="img1">小黄</div>
            </li>
            <li>
                <a href="#">4</a>
                <div class="img1">小红</div>
            </li>
        </ul>
    </nav>
    <div class="img"></div>
</body>
</html>